﻿Public Class Banner
    Inherits System.Web.UI.UserControl

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Dim pageURL As String
        pageURL = Request.Url.AbsoluteUri
        If pageURL.IndexOf("default") <> -1 Then
            Session("userName") = "Guest"
        Else
            If Session("userName") = "" Then
                Response.Redirect("default.aspx", True)
            End If
        End If

    End Sub

    Public Sub Logout()

    End Sub

End Class